package com.qianji.common.exception;

/**
 * @author liang zai
 * @date 2022/5/5 18:21
 * @description
 */
public class NoStockException extends RuntimeException{
    private Long skuId;
    private String message;
    public NoStockException(Long skuId){
        super("商品id："+skuId+"没有足够的库存了");
    }
    public NoStockException(String message){
        super(message);
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}
